package hhhh;

import java.util.Scanner;

/**
 * @Author MDD
 * @Description
 * @Version
 * @Date
 **/
public class Account {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);


        System.out.println("欢迎使用本系统！");
        System.out.print("请输入您的账户：");
        String id = sc.next();

        if (id.equals("24")){
            System.out.println("1、存款    2、取款    3、查询余额");
            System.out.print("请输入你想要操作的序号：");
            int number = sc.nextInt();
            switch (number){
                case 1 :
                    TestAccount m = new TestAccount();
                    m.deposit();
                    break;
                case 2:
                    TestAccount d = new TestAccount();
                    d.withdrawal();
                    break;
                case 3:
                    TestAccount y = new TestAccount();
                    y.query();
                    break;
                default:
                    break;
            }
        }
        else {
            System.out.println("账号错误！");
        }
    }
}
